<?php


class Project extends CI_Controller {
	function __construct() {
		parent::__construct();
	}
	
	
	function index()
	{
		$this->load->model('Project_Model','',true);
		$result=$this->Project_Model->query_all_project_name();
		$data['name']=$result['name'];
		$data['ID']=$result['ID'];
		print_r($data);
	}
	
	
	function member($pid)
	{
		$this->load->model('Project_Model','',true);
		$result = $this->Project_Model->query_member_id($pid);
		print_r($result);
	}
	
	
	function addmember()
	{
		$this->load->model('Project_Model','',true);
		$pid = $this->input->post('PID',true);
		$account=$this->input->post('UAccount',true);
		$this->Project_Model->insert_project_member($pid,$account);
	}
	

	
	
	
	
	
	
	
}

?>